﻿using BaseData.ErrorCode;
using MediatR;

namespace BaseData.WriteApi.Application.Command.Users
{
    public class InsertUserCommand:IRequest<Apiresult<int>>
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; } = string.Empty;
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = string.Empty;
        /// <summary>
        /// 邮箱
        /// </summary>
        public string UserEmail { get; set; } = string.Empty;
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; } = string.Empty;
        /// <summary>
        /// 角色Id
        /// </summary>
        public int RoleId { get; set; }
    }
}
